package net.zdreamer.shunyi.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import net.zdreamer.shunyi.R;
import net.zdreamer.shunyi.utils.ListUtils.NewsListInfos;
import net.zdreamer.shunyi.utils.ViewHolder;

import java.util.List;

/**
 * Created by Admin on 2014/12/25.
 */
public class NewsListAdapter extends MyBaseAdapter<NewsListInfos.NewsListInfo> {


    public NewsListAdapter(Context context, List<NewsListInfos.NewsListInfo> list, int res) {
        super(context, list, res);
    }

    @Override
    protected View getView(int position, View convertView, ViewGroup parent, NewsListInfos.NewsListInfo value) {
        TextView news=(TextView) ViewHolder.get(convertView, R.id.list_item_textview);
        news.setText(value.news);
        return convertView;
    }
}
